#pragma once
#include "stdafx.h"
#include "Rationnel.h"

using namespace std;

class Monome
{
private:
	Rationnel _coef;
	int _exp;

public:
	Monome();
	Monome(const Rationnel &, const int);
	Monome(const Monome &);
	~Monome(void);

	Monome & operator= (const Monome &);
	Monome operator* (const Monome &)const;	
	Monome operator+ (const Monome &)const;

	string ToString() const;

	Rationnel GetCoef() const;

	int GetExp() const;
};

std::ostream & operator<<(std::ostream & flot,const Monome & m);

